package com.gjy.scala

import scala.io.StdIn

object Test {
  def main(args: Array[String]): Unit = {
    var nums = List(3, 2, 2, 3)
    println (nums.updated(1,nums(3)))
  }
}
